<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<include file="__VIEW__/Common/header" />
		<script type="text/javascript" src="__STATIC__/index/js/list.js"></script>
		<!--头部结束-->
	<!--分类部分-->
	<div id="cateNav">
		<div class="mid">
			<p class="cateNav">
			<list from="$fatherCate" name="$f">
				<if value="$hd.list.f.last">
					<h2>{$f.cname}</h2>
				<else/>
					<a href="{|U:'List/index',array('cid'=>$f['cid'])}">{$f.cname}</a>&nbsp;/&nbsp;
				</if>
			</list>
			</p>
			<div class="right">
				<list from="$sonCate" name="$s">
					<p><a href="{|U:'List/index',array('cid'=>$s['cid'])}">{$s.cname}</a></p>
				</list>
			</div>
		</div>
		
	</div>
	<!--分类部分-->
	<div id="conditionNav">
		<div class="mid">
			<div class="left">
				<ul>
					<!--<li>价格</li>-->
					<list from="$attr" name="$n">
						<li>{$n.name}</li>
					</list>
					
				</ul>
			</div>
			<div class="right">
				<a href="javascript:;" class="hottest">最热</a>
				<a href="javascript:;" class="newx">最新</a>
				
			</div>
		</div>
	</div>
	<!--价格 标签 材质-->
	<!--<div class="price">
		<p>价格:</p>
		<ul>
			<li><a href="{|U:'List/index',array('cid'=>$_GET['cid'],'price'=>0,'param'=>implode('_',$param))}"  <if value="!$_GET['price']">  class="on" </if>  >全部</a></li>
			<li><a href="{|U:'List/index',array('cid'=>$_GET['cid'],'price'=>'0,50','param'=>implode('_',$param))}"  <if value="$_GET['price']=='0,50'">  class="on" </if>  >0~50</a></li>
			<li><a href="{|U:'List/index',array('cid'=>$_GET['cid'],'price'=>'51,200','param'=>implode('_',$param))}"  <if value="$_GET['price']=='51,200'">  class="on" </if>  >51~200</a></li>
			<li><a href="{|U:'List/index',array('cid'=>$_GET['cid'],'price'=>'201,500','param'=>implode('_',$param))}"  <if value="$_GET['price']=='201,500'">  class="on" </if>  >201~500</a></li>
			<li><a href="{|U:'List/index',array('cid'=>$_GET['cid'],'price'=>'500','param'=>implode('_',$param))}"  <if value="$_GET['price']==500">  class="on" </if>  >500以上</a></li>
		</ul>
	</div>-->
	<foreach from="$attr" value="$v" key="$k">
		<?php 
			//赋给一个临时变量保证下次循环不丢失
			$temp=$param;
			//不限为0
			$temp[$k]=0;
		 ?>
		<div class="price">
			<p>{$v.name}:</p>
			<ul>
				<li><a href="{|U:'index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp))}" <if value="$param[$k]==0">class="on"</if> >全部</a></li>
				<foreach from="$v['value']" value="$value" key="$key">
				<?php 
					$temp[$k]=$value['gaid'];
				 ?>
				<li><a href="{|U:'index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp))}" <if value="$param[$k]==$value['gaid']">class="on"</if>  >{$value.gvalue}</a></li>
				</foreach>
			</ul>
		</div>
	</foreach>
	<!--价格 标签 材质-->
	<!--商品展示-->
	<div id="commodity">
		<if value="$listData">
			<list from="$listData" name="$g" rows="12">
				<!--单个商品-->
				<div class="comm">
					<a href="{|U:'Goods/index',array('gid'=>$g['gid'])}" target="_blank" title="{$g.gname}"><img src="__ROOT__/{$g.pic}" alt="{$g.gname}" width="242" height="242" class="hvr-push"/></a>	
					<div class="collect"><a href="{|U:'Common/add',array('gid'=>$g['gid'])}">收藏到橱窗</a></div>
					<a href="{|U:'Goods/index',array('gid'=>$g['gid'])}" class="title" target="_blank">{$g.gname}</a>
					<div class="xian"></div>
					<div class="goodsprice">￥{$g.shopprice}</div>
				</div>	
			</list>
		<else/>
			<h3>该分类下没有商品</h3>
		</if>
	</div>
	<!--商品展示-->
	<div class="clear"></div>
	<!--分页-->
	<div style="margin: 20px auto;" class="cms_page">
		{$page}
	</div>
	<!--分页结束-->
	<div class="clear"></div>
		<!--底部开始-->
		<include file="__VIEW__/Common/footer"/>
